import { type } from '@/typeUtils'

class Test {}

describe('typeUtils', () => {

  test.each([
    [{}, 'Object'],
    [1, 'Number'],
    ['', 'String'],
    [true, 'Boolean'],
    [null, 'Null'],
    [undefined, 'Undefined'],
    [new Date(), 'Date'],
    [function(){}, 'Function'],
    [[], 'Array'],
    [Test, 'Function'],
    [new Test(), 'Object'],
  ])('type(%s)', (value, expected) => {
    expect(type(value)).toBe(expected)
  })

})